import React from 'react'
import { HashRouter as Router, Routes } from 'react-router-dom'

import { Root } from '@lib/components'
import { AuthorizedRoute } from '@lib/components/Authorized'
import PermissionTable from './components/PermissionTable'
import config from './index.meta'

const App = () => {
  return (
    <Root>
      <Router>
        <Routes>
          <AuthorizedRoute
            authority={config.authority}
            path={config.routerPrefix}
            element={<PermissionTable />}
          ></AuthorizedRoute>
        </Routes>
      </Router>
    </Root>
  )
}

export default App
